package com.holly.unit.deform.api.factory;

import com.holly.unit.deform.api.pojo.tool.DesformWidget;
import com.holly.unit.deform.api.util.ConvertUtil;

import java.util.Arrays;

/**
 * 类描述: select-depart 部门转换器
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/4/14 14:50
 */
public class SelectDepartConverter extends HollyBizConvert {

    public SelectDepartConverter(DesformWidget widget) {
        super(widget,
                ConvertUtil.DEPART_TABLE_NAME,
                ConvertUtil.DEPART_TEXT_NAME,
                // 部门组件允许翻译的字段有：id、orgCode
                Arrays.asList(ConvertUtil.ID_NAME, ConvertUtil.DEPART_ORG_CODE_NAME)
        );
    }

}
